package com.bkhc.partner.repository;

import com.bkhc.partner.entity.Employee;
import com.bkhc.partner.entity.Partner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface EmployeeRepository extends JpaRepository<Employee,String>, JpaSpecificationExecutor<Employee> {

    void deleteAllByPartnerCode(String partnerCode);

    Employee findByUserId(String userId);

    Employee findByPartnerCode(String partnerCode);
}
